package clh;

import static org.junit.Assert.*;
import org.junit.Test;

/**
 * Tests that Chuan's fire power according to the number of bullets missed.
 * 
 * @author Chuan Lun Hung
 * 
 */
public class TestChuanFirePower {

  /**
   * Tests that Chuan's fire power according to the number of bullets missed.
   * 
   */
  @Test
  public void testFirePower() {
    // the parameter in getBulletPower is assumed to be the number
    // of times that the bullet missed the target
    assertSame("Check medium fire power", (int)Chuan.getBulletPower(1), 2);
    assertSame("Check high fire power", (int)Chuan.getBulletPower(0), 3);
    assertSame("Check low fire power", (int)Chuan.getBulletPower(200), 1);
  }
}
